#ifndef	__APP_STR_H
#define	__APP_STR_H

#include "stm32g0xx_hal.h"

ErrorStatus Str_Str(uint16_t * num, uint8_t *str, uint16_t strlen, uint8_t *substr, uint16_t sublen);
void Str_ReplaceStr(uint8_t * buf, uint8_t * addbuf, uint16_t addbuf_len);
uint16_t Str_StrToDec(uint8_t * buf, uint16_t buf_len);
void Str_DecToStr(uint8_t * buf, uint32_t num, uint16_t num_len);
uint16_t Str_StrToHex(uint8_t * buf, uint16_t buf_len);
void Str_HexToStr(uint8_t * buf, uint16_t hex, uint16_t hex_len);
uint8_t Str_DecCount(uint16_t number);
ErrorStatus Str_ContrastStr(uint8_t * buf, uint8_t buf_len, uint8_t * sub);
void Str_ClearBuf(uint8_t *buf, uint16_t buf_len);

#endif


